import { Layout } from "antd";
import "./css/App.css";
import RouterConfig from "./router/router";

// 注意：引入组件必须使用大驼峰（首字母大写），pageHeader无法识别
import PageHeader from "./components/pageHeader";
import PageFooter from "./components/pageFooter";

const { Header, Content, Footer } = Layout;

function App() {
  return (
    <div>
      <Layout>
        <Header className="header">
          <PageHeader />
        </Header>
        <Content className="content">
          <RouterConfig />
        </Content>
        <Footer className="footer">
          <PageFooter />
        </Footer>
      </Layout>
    </div>
  );
}

export default App;
